package com.lxz.datasource.common;

import org.springframework.data.annotation.Transient;

import java.util.Date;

public class BasePage {
	/**
	 * 默认分页数目
	 */
	@Transient
	private Integer pageSize = 10;
	/**
	 * 默认分页偏移数
	 */
	@Transient
	private Integer offset = 0;
	/**
	 * 排序字段
	 */
	@Transient
	private String sortField;

	/**
	 * 排序类型，枚举值: ASC DESC
	 */
	@Transient
	private String sortType;

	@Transient
	private Date beginCreateTime;
	@Transient
	private Date endCreateTime;

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getOffset() {
		return offset;
	}

	public void setOffset(Integer offset) {
		this.offset = offset;
	}

	public String getSortField() {
		return sortField;
	}

	public void setSortField(String sortField) {
		this.sortField = sortField;
	}

	public String getSortType() {
		return sortType;
	}

	public void setSortType(String sortType) {
		this.sortType = sortType;
	}

	public Date getBeginCreateTime() {
		return beginCreateTime;
	}

	public void setBeginCreateTime(Date beginCreateTime) {
		this.beginCreateTime = beginCreateTime;
	}

	public Date getEndCreateTime() {
		return endCreateTime;
	}

	public void setEndCreateTime(Date endCreateTime) {
		this.endCreateTime = endCreateTime;
	}
}
